package cn.tedu.um2.service;

import cn.tedu.um2.mapper.UserMapper;
import cn.tedu.um2.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired(required = false)
    private UserMapper userMapper;
    @Override
    public User selectUserById(int id) {
        return userMapper.selectUserById(id);
    }
}
